<?php
	class Pdf extends CI_Controller
		{
			
				function __construct()
					{
						parent::__construct();
						//$this->load->model('test_model');
						//$data['main_content'] = 'erp_invoice_view';
						$this->load->model('pdf_model');
						//$this->load->view($data['main_content']);
					}
					
				function index()
					{
						$data['query'] = $this->pdf_model->retrieve_data();
						echo $data['query1'] = $this->pdf_model->count_row();
						//echo($data1. "yoyoyoyo");
						$this->load->view('erp_invoice_view',$data);
					}
		}	
	
?>	